package com.pro.mapper;

import com.pro.pojo.*;
import com.querydsl.core.types.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author cyj
 * @date 2022.1.14$ 15.33$
 * @content :
 */
public interface JsOrderMapper {
    /**
     * @author cyj
     * @date 2022.1.14$ 15.33$
     * @content :获取课程订单
     */
    List<JsOrder> getAllCourseOrder(@Param("orderPaymentChannel")String orderPaymentChannel, @Param("orderSource")String orderSource, @Param("orderStatus")String orderStatus, @Param("type")Integer type,@Param("comment")Integer comment);
    /**
     * @author cyj
     * @date 2022.1.14$ 19.26$
     * @content :删除订单（商品，课程通用）包括退订
     */
    Boolean delCourseOrder(Integer id);
    /**
     * @author cyj
     * @date 2022.1.14$ 19.42$
     * @content :获取一条用户详细信息
     */
    JsBeforeUser getUserMsg(Integer orderId);
    /**
     * @author cyj
     * @date 2022.1.15$ 9.37$
     * @content :获取商品订单
     */
    List<JsOrder> getAllGoodsOrder(@Param("orderPaymentChannel") String orderPaymentChannel,@Param("Source")String Source,@Param("Status")String Status,@Param("type")Integer type,@Param("comment")Integer comment);
    /**
     * @author cyj
     * @date 2022.1.15$ 11.59$
     * @content :获取全部退订订单
     */
    List<Order> getAllReturnMsg(@Param("orderPaymentChannel") String orderPaymentChannel, @Param("Source") String orderSource,@Param("Status")Integer Status);
    /**
     * @author cyj
     * @date 2022.1.15$ 11.59$
     * @content :获取退订订单
     */
    List<Order> getReturnMsg(@Param("orderPaymentChannel") String orderPaymentChannel, @Param("Source") String orderSource,@Param("Status")Integer Status);
    /**
     * @author cyj
     * @date 2022.1.18$ 17.50$
     * @content :查看商品订单统计
     */
    List<JsGoods> selectGoodsStatistics(Integer orderType);
    /**
     * @author cyj
     * @date 2022.1.18$ 18.49$
     * @content :查看echarts课程订单统计
     */
    List<JsCourse> selectCurriculumStatistics(Integer orderType);
}
